package com.liangtian.mdm.system.menu.model;

import com.liangtian.mdm.base.model.BaseModel;

import javax.persistence.Table;

/**
 * 菜单实体类
 *
 * @author hadoop
 */
@Table(name = "SYS_MENU")
public class Menu extends BaseModel {
    private String roleId;

    private String menu_id; //主键id
    private String name;  //菜单名称
    private String url;  //链接
    private String super_id; //上级id
    private String grade;  //菜单层级
    private String order_num; //排序
    private String show_name;  //展示名称
    private String status;  //1 活动  2 冻结
    private String menu_type;  //apply 申请菜单  sh审核菜单  list查询菜单  update修改菜单 wh维护菜单
    private String model_id;  //菜单所属的模型id
    private boolean isParent;  //是否有子节点
    private String limit;

    private String pName; //上级名称
    private String modelName; //所属模型
    private boolean halfCheck = false; //半选状态
    private boolean checked = false; //全选状态
    private boolean open = true;

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public boolean isHalfCheck() {
        return halfCheck;
    }

    public void setHalfCheck(boolean halfCheck) {
        this.halfCheck = halfCheck;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public void setParent(boolean isParent) {
        this.isParent = isParent;
    }


    public String getMenu_id() {
        return menu_id;
    }

    public void setMenu_id(String menu_id) {
        this.menu_id = menu_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSuper_id() {
        return super_id;
    }

    public void setSuper_id(String super_id) {
        this.super_id = super_id;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getOrder_num() {
        return order_num;
    }

    public void setOrder_num(String order_num) {
        this.order_num = order_num;
    }

    public String getShow_name() {
        return show_name;
    }

    public void setShow_name(String show_name) {
        this.show_name = show_name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMenu_type() {
        return menu_type;
    }

    public void setMenu_type(String menu_type) {
        this.menu_type = menu_type;
    }

    public String getModel_id() {
        return model_id;
    }

    public void setModel_id(String model_id) {
        this.model_id = model_id;
    }

    public Boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(Boolean isParent) {
        this.isParent = isParent;
    }

    public String getLimit() {
        return limit;
    }

    public void setLimit(String limit) {
        this.limit = limit;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}
